import request from '@/utils/request'

// api地址
const api = {
	index: 'commission/center',
	weekPrizeList: 'commission/weekPrizeLogList',
	monthPrizeList: 'commission/monthPrizeLogList',
	recommendPrizeList: 'commission/recommendPrizeLogList',
	recommendOrderList: 'commission/recommendOrderLogList',
	balanceLog: 'commission/moneyLogList',
}

// 收益中心
export function index() {
	return request.get(api.index)
}

//周奖励明细
export function weekPrizeList(page = 1) {
	return request.get(api.weekPrizeList, {
		page
	})
}

//月奖励明细
export function monthPrizeList() {
	return request.get(api.monthPrizeList)
}

//推荐奖励列表
export function recommendPrizeList() {
	return request.get(api.recommendPrizeList)
}

//推荐奖励订单
export function recommendOrderList(data) {
	return request.get(api.recommendOrderList, data)
}


//进出账明细，即：余额明细
export function balanceLog(data) {
	return request.get(api.balanceLog, data)
}